﻿using System.Web.Mvc;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;

namespace Nop.Plugin.Payments.LibraPay.Models
{
	/// <summary>
	///		<para>ViewModel used to populate parameters and config settings that are used when calling the LibraPay gateway API.</para>
	///		<para>See LibraPayPaymentSettings class.</para>
	/// </summary>
	public class ConfigurationModel : BaseNopModel
	{
		
		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.UseSandbox")]
		public bool UseSandbox { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.NotifyBeforeRedirect")]
		public bool NotifyBeforeRedirect { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.MerchantName")]
		public string MerchantName { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.MerchantURL")]
		public string MerchantURL { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.MerchantEmail")]
		public string MerchantEmail { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.EncryptionKey")]
		public string EncryptionKey { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.TerminalId")]
		public string TerminalId { get; set; }

		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.AdditionalFee")]
		public decimal AdditionalFee { get; set; }
		
		[NopResourceDisplayName("Plugins.Payments.LibraPay.Config.URLforIPN")]
		public string URLforIPN { get; set; }
	}
}
